/...
import ${basePackage}.dao.system.vo.SystemUserListVO;
+import ${basePackage}.service.system.SystemDepartmentService;
...
@Autowired
private SystemRoleService systemRoleService;
+
+    @Autowired
+    private SystemDepartmentService systemDepartmentService;
...
    @Override
    public PageData<SystemUserListVO> findPage(PageWrap<QuerySystemUserDTO> pageWrap) {
+        // 根部门条件处理（需查询根部门下所有部门的用户）
+        if (pageWrap.getModel().getRootDeptId() != null) {
+            List<Integer> departmentIds = systemDepartmentService.findChildren(pageWrap.getModel().getRootDeptId());
+            departmentIds.add(pageWrap.getModel().getRootDeptId());
+            pageWrap.getModel().setDepartmentIds(departmentIds);
+        }
.../
